package com.ymatou.iapi.proditem.service;

import java.util.Arrays;
import java.util.List;

import org.json.JSONObject;

import com.ymatou.iapi.productquery.compare.ProductQueryInterface;
import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class GetSecKillProductActivityStockCall extends YmatouAutoTestCall  implements ProductQueryInterface{
	private static String opurl="/api/Product/GetSecKillProductActivityStock";
	
	public GetSecKillProductActivityStockCall(){
		super(EnvSetup.getSystemUrl("proditem"), opurl, "GET", "JSON");
	}
	
	
	@Override
	public void addDefHeader(){
	}
	
	public JSONObject callAndGetReturnData(String productId,String activityId){
		return callAndGetReturnData(MapUtil.hashMap("ProductId",productId,"ActivityId",activityId));
	}
	
	@Override
	public JSONObject search(List<String> list) {
		return callAndGetReturnData(list.get(0),list.get(1));
	}
	
	public static void main(String[] args) {
		new GetSecKillProductActivityStockCall().search(Arrays.asList("cefe588b-5a3c-4c61-be03-854ce00e5c9b","19903"));
	}


	
}
